nucl = input()
C = nucl.upper().count('c'.upper())
G = nucl.upper().count('g'.upper())
GC = (C + G)/len(nucl) * 100
print (GC)
